import request from '@/utils/request'

export function getRegionTreeApi(data) {
    return request({
        url: '/api/system.region/tree',
        method: 'post',
        data: data
    })
}

export function getProvinceListApi(data) {
    return request({
        url: '/api/system.region/getProvinceList',
        method: 'post',
        data: data
    })
}

export function getChildrenApi(data) {
    return request({
        url: '/api/system.region/getChildren',
        method: 'post',
        data: data
    })
}

export function getOpenedCityListApi(data) {
    return request({
        url: '/api/system.region/getOpenedCityList',
        method: 'post',
        data: data
    })
}

export function openCityApi(data) {
    return request({
        url: '/api/system.region/openCity',
        method: 'post',
        data: data
    })
}


export function closeCityApi(data) {
    return request({
        url: '/api/system.region/closeCity',
        method: 'post',
        data: data
    })
}

export function saveRegionApi(data) {
    return request({
        url: '/api/system.region/save',
        method: 'post',
        data: data
    })
}